package com.woniuxy.project.campus.exception;//package com.woniuxy.project.campus.exception;




import com.woniuxy.project.campus.util.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionHandler {
    @ExceptionHandler(Exception.class)
    public Result HandleNoLoginException(Exception e)  {
        e.printStackTrace();
        return Result.fail(e.getMessage());
    }
}
